home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / CyberDEFs 1.0.1 Folder / CyberDEFs / CyberDEFs.rsrc / TEXT_1016_œBusiness • œThree Classes • ”TextCDEF.txt < prev    next >
Encoding:
Text File  |  1994-06-12  |  1.4 KB  |  26 lines

  1. With a few calls to the Dialog Manager and a resource editor (e.g., ResEdit), you can easily create a simple text entry dialog with a default and a Cancel button. But how easy is it to create an editable, resizable, scrolling text field in a window? Using TextCDEF, you needn't do much more than you would if you were creating an Edit or Static field with your resource editor's dialog editor.
  2.  
  3. Features of TextCDEF:
  4.  
  5. ‚Ä¢ Can handle unlimited amounts of text; no 32K limit
  6. ‚Ä¢ Lets you lockscreen over list during state changes
  7. ‚Ä¢ Can be preset to any font or size; or do style runs
  8. ‚Ä¢ Auto-loads from resource or data fork on startup
  9. ‚Ä¢ Auto-saves to resource or data fork at close
  10. ‚Ä¢ Special verb messages sent to this CDEF let you:
  11.      ‚Äî Find and select by string or word
  12.      ‚Äî Wrap-around find
  13.      ‚Äî Cut, copy and paste
  14.      ‚Äî Resize the field
  15. ‚Ä¢ Built-in behaviors simplify otherwise tedious
  16.    tasks, including:
  17.      ‚Äî auto-scrolling during click and drag
  18.      ‚Äî resetting scroll after resize
  19.      ‚Äî adjusting scroll after pasting or typing
  20.      ‚Äî Resizing the field
  21.  
  22. The field housing the text you're reading right now is an example of the TextCDEF in action. This field is special, though, because it lets you select text, but won't let you enter or delete it by any means.
  23.  
  24. See Àá "Var. Codes" for more detail on properties of TextCDEFs.
  25.  
  26. See Àá "Make a Control" or Àá "Events" for specific info on implementing CyberDEFs in your dev environment.